import VueRouter from 'vue-router'

import login from '../vue/mian/login.vue'
import register from '../vue/mian/register.vue'

import qq from '../vue/subcom/qq.vue'
import tel from '../vue/subcom/tel.vue'

var router=new VueRouter({
  routes:[
    {path:'/',redirect:'./login'},
    {
      path:'/login',
      component:login,
      children:[
        {path:'qq',component:qq},
        {path:'tel',component:tel}
      ]
    },
    {path:'/register',component:register}
  ]
})

module.exports=router